package com.example.quanxian2.demo1.controller;

import com.example.quanxian2.demo1.VO.UserInsertRoleVO;
import com.example.quanxian2.demo1.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @PostMapping("/insertUserRole")
    public String insertUserRole(@RequestBody UserInsertRoleVO userInsertRoleVO){
        return userService.insertUserRole(userInsertRoleVO);
    }
}
